﻿using Microsoft.Extensions.Logging;

namespace BasicHostModule.Module
{
    public class ProductService
    {
        public ILogger<ProductService> Logger { get; set; }

        public IConfiguration configuration { get; set; }
        public ProductService(ILogger<ProductService> logger, IConfiguration configuration)
        {
            this.Logger = logger;
            this.configuration = configuration;
        }

        public void Run()
        {
            while (true)
            {
                Logger.LogInformation("打印日志");
            }

            //Logger.LogInformation("打印日志");
            //Logger.LogInformation(configuration["verification:AuthService"]);
            //Logger.LogInformation(configuration["verification:zdf"]);
            //Logger.LogInformation(configuration["Logging:Default"]);
            //Console.ReadLine();
        }
    }
}
